import unittest

from Lib.HTMLTestRunner import HTMLTestRunner
from EcShopRegisterUnitTest import EcShopRegisterUnitTest

if __name__ == '__main__':
    # 创建好了一个 测试集
    suite = unittest.TestSuite()
    suite.addTests(unittest.TestLoader().loadTestsFromTestCase(EcShopRegisterUnitTest))

    runner = HTMLTestRunner(stream=open('EcShopRegisterUnitTest_Reporter_02.html', 'wb'), verbosity=2)
    runner.run(suite)
